<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<title>订单列表</title>
<link rel="stylesheet" href="<?=adminassets?>assets/pear/component/pear/css/pear.css" />

</head>

<body class="pear-container">
	<div class="layui-card">
		<div class="layui-card-body">
			<form class="layui-form" action="">
				<div class="layui-form-item">
					<div class="layui-form-item layui-inline">
						<label class="layui-form-label">支付状态</label>
						<div class="layui-input-inline">
							<select name="ispay">
								<option value="">请选择一个状态</option>
								<option value="no">未支付</option>
								<option value="yes">已支付</option>
							</select>
						</div>
					</div>
					<div class="layui-form-item layui-inline">
						<label class="layui-form-label">商户单号</label>
						<div class="layui-input-inline">
							<input type="text" name="out_trade_no" placeholder="" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item layui-inline">
						<label class="layui-form-label">本地单号</label>
						<div class="layui-input-inline">
							<input type="text" name="trade_no" placeholder="" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item layui-inline">
						<label class="layui-form-label">商户号</label>
						<div class="layui-input-inline">
							<input type="text" name="pid" placeholder="" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item layui-inline">
						<button class="pear-btn pear-btn-md pear-btn-primary" lay-submit lay-filter="user-query">
							<i class="layui-icon layui-icon-search"></i>
							查询
						</button>
						<button type="reset" class="pear-btn pear-btn-md">
							<i class="layui-icon layui-icon-refresh"></i>
							重置
						</button>
					</div>
				</div>
			</form>
		</div>
	</div>
	<div class="layui-card">
		<div class="layui-card-body">
			<table id="user-table" lay-filter="user-table"></table>
		</div>
	</div>

	<script type="text/html" id="user-toolbar">
		<button class="pear-btn pear-btn-primary pear-btn-md" lay-event="batchRemove">
			<i class="layui-icon layui-icon-delete"></i>
			批量删除
		</button>
		<button class="pear-btn pear-btn-danger pear-btn-md" lay-event="allRemove">
			<i class="layui-icon layui-icon-delete"></i>
			一键清理未支付订单
		</button>
	</script>

	<script type="text/html" id="user-bar">
		<button class="pear-btn pear-btn-danger pear-btn-sm" lay-event="deleteOrder"><i class="layui-icon layui-icon-delete"></i></button>
	</script>

	<script type="text/html" id="status">
		<input type="checkbox" name="status" value="{{d.trade_no}}" lay-skin="switch" lay-text="已支付|未支付" lay-filter="statu" {{ d.status== 1 ? 'checked' : '' }} />
	</script>


	<script type="text/html" id="type">
	{{#if (d.type == "alipay") { }}
		<span>支付宝</span>
		{{# }else if(d.type == "qqpay"){ }}
			<span>qq支付</span>
			{{# }else if(d.type == "wxpay"){ }}
				<span>微信支付</span>
				{{# }else if(d.type == "usdtpay"){ }}
				<span>USDT支付</span>
				{{# } }}
	</script>

	<script type="text/html" id="isPay">
	{{#if (d.endtime == null) { }}
		<span style="border-radius: 10%;" class="pear-btn pear-btn-danger pear-btn-xs">未支付</span>
		{{# }else{ }}
			<span>{{ d.endtime }}</span>
			{{# } }}
	</script>

	<script type="text/html" id="hook_type">
	{{#if (d.hook_type == 1) { }}
		<span style="border-radius: 10%;" class="pear-btn pear-btn-danger pear-btn-xs">挂机版 -> [{{d.id}}]</span>
		{{# }else{ }}
			<span style="border-radius: 10%;" class="pear-btn pear-btn-success pear-btn-xs">免挂机版 -> [{{ d.qr_id }}]</span>
			{{# } }}
	</script>
	<script src="<?=adminassets?>assets/pear/component/layui/layui.js"></script>
    <script src="<?=adminassets?>assets/pear/component/pear/pear.js"></script>
    <script src="<?=adminassets?>assets/js/core_js/order.js"></script>
    	</body>

</html>
    	